import 'package:library_base/entities/generated/json/base/json_convert_content.dart';
import 'package:library_base/entities/shipper_entity.dart';



ShipperEntity $ShipperEntityFromJson(Map<String, dynamic> json) {

	final ShipperEntity shipperEntity = ShipperEntity();

	final String? id = jsonConvert.convert<String>(json['id']);
	if (id != null) {
		shipperEntity.id = id;
	}
	final String? provinceId = jsonConvert.convert<String>(json['provinceId']);
	if (provinceId != null) {
		shipperEntity.provinceId = provinceId;
	}
	final String? cityId = jsonConvert.convert<String>(json['cityId']);
	if (cityId != null) {
		shipperEntity.cityId = cityId;
	}
	final String? areaId = jsonConvert.convert<String>(json['areaId']);
	if (areaId != null) {
		shipperEntity.areaId = areaId;
	}
	final String? villageId = jsonConvert.convert<String>(json['villageId']);
	if (villageId != null) {
		shipperEntity.villageId = villageId;
	}
	final String? addr = jsonConvert.convert<String>(json['addr']);
	if (addr != null) {
		shipperEntity.addr = addr;
	}
	final String? contact = jsonConvert.convert<String>(json['contact']);
	if (contact != null) {
		shipperEntity.contact = contact;
	}
	final String? mobile = jsonConvert.convert<String>(json['mobile']);
	if (mobile != null) {
		shipperEntity.mobile = mobile;
	}
	final String? createTime = jsonConvert.convert<String>(json['createTime']);
	if (createTime != null) {
		shipperEntity.createTime = createTime;
	}
	final String? updateTime = jsonConvert.convert<String>(json['updateTime']);
	if (updateTime != null) {
		shipperEntity.updateTime = updateTime;
	}
	final String? creator = jsonConvert.convert<String>(json['creator']);
	if (creator != null) {
		shipperEntity.creator = creator;
	}
	final String? updater = jsonConvert.convert<String>(json['updater']);
	if (updater != null) {
		shipperEntity.updater = updater;
	}
	final String? deleted = jsonConvert.convert<String>(json['deleted']);
	if (deleted != null) {
		shipperEntity.deleted = deleted;
	}
	final String? tenantId = jsonConvert.convert<String>(json['tenantId']);
	if (tenantId != null) {
		shipperEntity.tenantId = tenantId;
	}
	final String? shipperCode = jsonConvert.convert<String>(json['shipperCode']);
	if (shipperCode != null) {
		shipperEntity.shipperCode = shipperCode;
	}
	final String? shipperName = jsonConvert.convert<String>(json['shipperName']);
	if (shipperName != null) {
		shipperEntity.shipperName = shipperName;
	}
	return shipperEntity;
}

Map<String, dynamic> $ShipperEntityToJson(ShipperEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['createTime'] = entity.createTime;
	data['updateTime'] = entity.updateTime;
	data['creator'] = entity.creator;
	data['updater'] = entity.updater;
	data['deleted'] = entity.deleted;
	data['tenantId'] = entity.tenantId;
	data['id'] = entity.id;
	data['provinceId'] = entity.provinceId;
	data['cityId'] = entity.cityId;
	data['areaId'] = entity.areaId;
	data['villageId'] = entity.villageId;
	data['addr'] = entity.addr;
	data['shipperCode'] = entity.shipperCode;
	data['shipperName'] = entity.shipperName;
	data['contact'] = entity.contact;
	data['mobile'] = entity.mobile;
	return data;
}